package org.diysearch.dao.interfaces;

import java.sql.SQLException;
import java.util.List;

import org.diysearch.models.Page;
import org.diysearch.models.PageElement;

public interface PageDao {
	public int save(Page page) throws SQLException;
	public int saveElement (PageElement pe) throws SQLException;
	
	public int setPublish(Page page) throws SQLException;
	
	public int setPublishable (Page page) throws SQLException;
	
	public List<Page> findByPublished() throws SQLException;
	public List<Page> findByUnpublished() throws SQLException;
	public Page findByUri (Page page) throws SQLException;
}
